// file:api.js
// 1、导入axios以及拦截器
import service from './request'

// 2、定义登录函数接口
export const userlogin = (data) => {
    return service({
        url: '/user/user/login',
        method: 'post',
        data
    })
};


//列表
export const userlist = (data) => {
    return service({
        url: '/user/user/list',
        method: 'post',
        data
    })
};

//添加
export const userAdd = (data) => {
    return service({
        url: '/user/user/addScen',
        method: 'post',
        data
    })
};

//删除
export const userDele = (data) => {
    return service({
        url: '/user/user/deleteScen/'+data,
        method: 'post'
    })
};

//获取列表
export const getList = () => {
    return service({
        url: '/user/user/firList',
        method: 'post'
    })
};